package online.shenjian.cloud.api.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * 数字货币排名
 *
 * @author shenjian
 * @since 2023-12-30
 */
@Document("rank")
@Data
public class Rank {

    @Id
    private String id;
    @Field
    private Integer rank;
    @Field
    private String url;
    @Field
    private String name;
    @Field("chinese_name")
    private String chineseName;
    @Field
    private Double price;
    @Field("hour_24")
    private Double hour24;
    @Field("day_7")
    private Double day7;
    @Field("volume_24h")
    private Double volume24h;
    @Field("mkt_cap")
    private Double mktCap;
    @Field("c_date")
    private Date cDate;
}
